// 存储

export const sessionSet = (key, value) => {
  sessionStorage.setItem('_' + key, JSON.stringify(value))
}

// 取出
export const sessionGet = (key) => {
  const data = sessionStorage.getItem(key)
  return JSON.parse(data)
}
// 移除
export const sessionRemove = (key) => {
  sessionStorage.removeItem(key)
}

// 全部清除
export const sessionClear = () => {
  sessionStorage.clear()
}
